<?xml version="1.0" encoding="utf-8"?>
<Content type="xform" name="EditContent">
	<model>
		<instance>
			<tblContent>
				<nContentKey/>
				<nContentPrimaryId/>
				<nVersion/>
				<cContentForiegnRef/>
				<cContentName/>
				<cContentSchemaName>PlainText</cContentSchemaName>
				<cContentXmlBrief>
					<Content/>
				</cContentXmlBrief>
				<cContentXmlDetail/>
				<nAuditId/>
				<nAuditKey/>
				<dPublishDate/>
				<dExpireDate/>
				<dInsertDate/>
				<nInsertDirId/>
				<dUpdateDate/>
				<nUpdateDirId/>
				<nStatus>1</nStatus>
				<cDescription/>
			</tblContent>
		</instance>
		<submission id="EditContent" action="" method="post" event="return form_check(this)"/>
    <bind nodeset="tblContent">
		  <bind id="cContentName" nodeset="cContentName" required="true()" type="string"/>
		  <bind id="cContentBody" nodeset="cContentXmlBrief/Content" required="false()" type="string"/>
		  <bind id="dPublishDate" nodeset="dPublishDate" required="false()" type="string"/>
		  <bind id="dExpireDate" nodeset="dExpireDate" required="false()" type="string"/>
		  <bind id="nStatus" nodeset="nStatus" required="true()" type="string"/>
		  <bind id="cDescription" nodeset="cDescription" required="false()" type="string"/>
		  <bind id="bCascade" nodeset="bCascade" required="false()" type="string"/>
    </bind>
		<!--bind id="cContentRecRead" nodeset="tblContent/cContentXmlDetail/Content/group/div[@class='recRead']" required="false()" type="string"/-->
	</model>
	<group ref="EditContent" class="2col">
		<label>Add/Edit Plain Text</label>
		<group>
			<group>
			  <input bind="nContentKey" class="hidden">
				  <label>ContentId</label>
			  </input>
			  <label>Settings</label>
			  <input bind="cContentName" class="short">
				  <label>Text Location</label>
			  </input>
			  <input bind="dPublishDate" class="calendar short">
				  <label>Publish Date</label>
			  </input>
			  <input bind="dExpireDate" class="calendar short">
				  <label>Expire Date</label>
			  </input>
			  <select1 bind="nStatus" appearance="full" class="vshort">
				  <label>Status</label>
				  <item>
					  <label>Live</label>
					  <value>1</value>
				  </item>
				  <item>
					  <label>Hidden</label>
					  <value>0</value>
				  </item>
			  </select1>
			  <select bind="bCascade" appearance="full">
				  <item>
					  <label>Cascade to Child Pages</label>
					  <value>true</value>
				  </item>
          <help class="inline">This item of content will be shown on all child pages</help>
			  </select>
			  <input bind="cDescription" class="short">
				  <label>Change Notes</label>
			  </input>
      </group>
		</group>
		<group>
      <group>
        <label>Enter Plain text</label>
			  <textarea bind="cContentBody" rows="10" cols="100" class="col-md-12">
			  </textarea>
      </group>
    
			<submit submission="EditContent" ref="ewSubmit" class="principle">
				<label>Save Text</label>
			</submit>
   </group>
		
	</group>
</Content>
